// pages/hisOrders/hisOrders.js
import {
    request,
} from "../../request/index.js";
import regeneratorRuntime from '../../lib/runtime/runtime';
import {
    getSetting,
    openSetting,
    showModal,
    showToast,
    getUserProfile,
    checkImgExists
} from "../../utils/asyncWx.js";
Page({

    /**
     * 页面的初始数据
     */
    data: {
        clientNum: "123456789aa",
        // orderList:[],

        // 测试用：
        orderList: [{
            orderID: "111111111",
            timeStamp: "2022-01-11 ....",
            resName: "巴黎老火锅（光谷1店）",
            resLoc: "珞喻路1037号。。。",
            iniAmount: 600.00,
            actAmount: 599.99,
        },]
    },

    /**
     * 生命周期函数--监听页面加载
     */
    async onLoad(options) {
        const orderList=await request({
            url:'record/listc'
        });
        this.setData({orderList});
    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {

    },

})